package org.example.demo.service.impl;


import org.example.demo.entity.VolunteerData;
import org.example.demo.mapper.VolunteerDataMapper;
import org.example.demo.service.VolunteerDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VolunteerDataServiceImpl implements VolunteerDataService {

    @Autowired
    VolunteerDataMapper volunteerDataMapper;
    /**
     * 更新志愿书审核数据
     * @param volunteerData
     */
    public void update(VolunteerData volunteerData) {

        volunteerDataMapper.update(volunteerData);
    }

    /**
     * 插入志愿书审核数据
     * @param volunteerData
     */
    public void save(VolunteerData volunteerData) {
        volunteerDataMapper.insert(volunteerData);
    }

    /**
     * 删除志愿书审核数据
     * @param id
     */
    public void deleteByVolunteerId(Long id) {
        volunteerDataMapper.deleteByVolunteerId(id);
    }
}
